<template>
  <div id="app">
    <el-container>
      <el-container>
        <el-aside width="200px">
          <el-menu default-active="/" class="el-menu-vertical-demo" router>
            <el-menu-item index="/">
              <i class="el-icon-message"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-menu-item index="/react-vite">
              <i class="el-icon-message"></i>
              <span slot="title">react-vite</span>
            </el-menu-item>
            <el-menu-item index="/react-webpack">
              <i class="el-icon-menu"></i>
              <span slot="title">react-webpack</span>
            </el-menu-item>
            <el-menu-item index="/vue2_webpack">
              <i class="el-icon-document"></i>
              <span slot="title">vue2_webpack</span>
            </el-menu-item>
            <el-menu-item index="/vue-vite">
              <i class="el-icon-document"></i>
              <span slot="title">vue-vite</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-container>
          <el-header>Micro-App</el-header>
          <el-main>
            <router-view></router-view>
            <!-- 子应用容器 -->
            <div id="subapp-container"></div>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
};
</script>

<style>
.el-header{
  background-color: #fafafa;
  font-size: 20px;
  color: #333;
  text-align: left;
  line-height: 60px;
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
</style>
